package com.it.bannner.video;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class User implements Parcelable {
    private String name;
    private String sex;
    private String age;
    private String pwd;
    private String nikname;
    private List<String> list;


    protected User(Parcel in) {
        name = in.readString();
        sex = in.readString();
        age = in.readString();
        pwd = in.readString();
        nikname = in.readString();
        list = in.createStringArrayList();
    }

    public static final Creator<User> CREATOR = new Creator<User>() {
        @Override
        public User createFromParcel(Parcel in) {
            return new User(in);
        }

        @Override
        public User[] newArray(int size) {
            return new User[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeString(sex);
        dest.writeString(age);
        dest.writeString(pwd);
        dest.writeString(nikname);
        dest.writeStringList(list);
    }
}
